<div class="modal fade" id="update-privilege-dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					修改权限
				</h4>
			</div>
			<div class="modal-body">
				 <form class="bs-example bs-example-form form-horizontal" role="form">
			       <div class="form-group">
			       		<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label"><font class="tip-red">*</font>父权限</label>
						<div class="col-sm-8">
							<input type="hidden" id="pId" value="${item.pId!}" />
							<input type="hidden" class="form-control" id="pParentId" value="${item.pParentId!}">
							<input type="text" class="form-control" id="pParentName" placeholder="" readonly="readonly" value="${item.parentPrivilege.pName!}">
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label"><font class="tip-red">*</font>权限名称</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" id="pName" placeholder="权限名称" value="${item.pName!}">
							<span id="pNameSpan" class="tip-red"></span>
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label"><font class="tip-red">*</font>权限码</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" id="pCode" placeholder="请输入权限码" value="${item.pCode!}">
							<span id="pCodeSpan" class="tip-red"></span>
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label">排序</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" id="pSort" placeholder="请输入排序序号，序号越小越靠前" value="${item.pSort!}">
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label">状态</label>
						<div class="col-sm-8">
							<#if item.pStatus == 1>
							<label class="radio-inline">
								<input type="radio" name="pStatus" value="1" checked>正常
							</label>
							<label class="radio-inline">
								<input type="radio" name="pStatus" value="0">停用
							</label>
							<#else>
							<label class="radio-inline">
								<input type="radio" name="pStatus" value="1" >正常
							</label>
							<label class="radio-inline">
								<input type="radio" name="pStatus" value="0" checked>停用
							</label>
							</#if>
						</div>
						<div class="col-sm-1"></div>
					</div>
			    </form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-primary" id="save-button" onclick="Privilege.updatePrivilege()">
					保存
				</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">
					关闭
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
